package xdpm.nhom16.helper;

import java.util.Comparator;

import xdpm.nhom16.DTO.DuLieuSearchDTO;


public class GiaCaoNhatComparator implements Comparator<DuLieuSearchDTO>{
	public int compare(DuLieuSearchDTO dtFirst, DuLieuSearchDTO dtSecond)	{
		double dFirst = dtFirst.getGiaCaoNhat();
		double dSecond = dtSecond.getGiaCaoNhat(); 
		if (dFirst > dSecond)	{
			return 1;
		}
		else if (dFirst == dSecond)	{
			return 0;
		}
		else	{
			return -1;
		}
	}
}
